-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add command to check ocis backup consistency #9238
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
4369d56
to
cf37c86
Compare
Example output inconsistent case:
Example output when clean:
|
8b149ec
to
ba0aad4
Compare
c7b0b74
to
84bf2b7
Compare
b918ae7
to
90868e2
Compare
Signed-off-by: jkoberg <jkoberg@owncloud.com> Co-authored-by: dragonchaser <crichter@owncloud.com>
Signed-off-by: jkoberg <jkoberg@owncloud.com> Co-authored-by: dragonchaser <crichter@owncloud.com> Signed-off-by: jkoberg <jkoberg@owncloud.com>
Signed-off-by: jkoberg <jkoberg@owncloud.com> Co-authored-by: dragonchaser <crichter@owncloud.com>
Signed-off-by: jkoberg <jkoberg@owncloud.com>
Signed-off-by: jkoberg <jkoberg@owncloud.com> Co-authored-by: dragonchaser <crichter@owncloud.com>
Signed-off-by: jkoberg <jkoberg@owncloud.com>
Signed-off-by: jkoberg <jkoberg@owncloud.com> Co-authored-by: dragonchaser <crichter@owncloud.com>
Signed-off-by: jkoberg <jkoberg@owncloud.com>
Signed-off-by: jkoberg <jkoberg@owncloud.com>
Signed-off-by: jkoberg <jkoberg@owncloud.com>
Signed-off-by: jkoberg <jkoberg@owncloud.com>
Signed-off-by: jkoberg <jkoberg@owncloud.com>
00fe2ac
to
e046768
Compare
docs/ocis/backup.md
Outdated
ocis backup consistency -p "<path-to-base-folder>" | ||
``` | ||
|
||
`path-to-base-folder` needs to be replaced with the path to the storage providers base path. For example: "/var/lib/ocis/storage/users" or "$HOME/storage/users". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...the path to the storage providers base path.
This sentence makes the path origin not clear, you should add the relevant envvar for reference so one can have a look how it was defined.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are multiple envvars for it. Could be BASE_DATA_BASE
or STORAGE_USERS_OCIS_ROOT
or even STORAGE_SYSTEM_OCIS_ROOT
. That is why put two examples instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The docs say
STORAGE_USERS_OCIS_ROOT
The directory where the filesystem storage will store blobs and metadata. If not defined, the root directory derives from $OCIS_BASE_DATA_PATH:/storage/users.
Referencing an envvar is imho much clearer as we have very good docs about...
Co-authored-by: Martin <github@diemattels.at>
@kobergj I gave this tool a try today. I was executing it in a environment that is configured for the storage-users service only (storageusers pod in the oCIS Helm Chart). To be actually able to run this tool, I needed to configure following additional environment variables:
Is there a reasoning why those secrets are needed for the backup check tool? From what I understand, the tool is concepted to be run against a file directory and blobstore without any running oCIS instance, so we probably don't need all those configuration options to be checked, right? |
@kobergj how hard would it be to have a flag to skip blob related checks? We could use this for validating a NFS snapshot only (without connecting to the S3 at all) EDIT: it also would kinda act as decomposed fs only consistency check. |
Yes that is how it is concepted. I'll check what's wrong. EDIT: Fixed. Needed to change a bool from
No problem. We can skip blob checking. I'll add a commandline parameter to do so 👍 EDIT: Implemented. Use @wkloucek implemented as suggested 👍 |
Signed-off-by: jkoberg <jkoberg@owncloud.com>
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good for me
Merging this. Will deliver additional features in subsequent PRs. Just ping me. |
Add command to check ocis backup consistency
Adds consistency check command
Fixes #9004
E2E testing needs additional ticket: #9286